package com.example.book.in.service;

import com.example.book.base.BaseService;
import com.example.book.in.entity.UserReadRecord;
import com.example.book.in.dao.UserReadRecordDao;

import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author hcj
 * @date 2019-12-12 15:14:00
 */
@Service
public class UserReadRecordService extends BaseService<UserReadRecord, UserReadRecordDao> {

    public List<UserReadRecord> selectRecordDescLimit() {
        return dao.selectRecordDescLimit();
    }

    public List<UserReadRecord> selectUserRecordLimit(UserReadRecord readRecord) {
        return dao.selectUserRecordLimit(readRecord);
    }

    public List<UserReadRecord> selectReadRecord(UserReadRecord readRecord) {
        return dao.selectReadRecord(readRecord);
    }

    public UserReadRecord findTheLastRecord(UserReadRecord readRecord) {
        return dao.findTheLastRecord(readRecord);
    }
}